Accessibility

DevNet Article

Photo

Author Name

Author URL

Article Headers are <h2>

make sure you close all your <p> tags with </p>

Subheads are <h3>

more content

This is <h4>...

...if you need another header. It's important to not skip header sizes, they should always go in order: <h1> (page heading, graphic), <h2> (article title), <h3>, <h4>.

Meta Data

Make sure you replace the data when producing articles, especially the product name (this is critical for search to work properly).

Code samples

Inline code should use the <code> tag (as in this sentance, for example). There is no need to use <font size="2"> like we used to (the <font> tag should never be used!). Longer code samples are formatted using <pre> with <div class="preWrapper"> around the <pre> tag.

<div class="preWrapper"><pre>
    <meta name="area" content="devnet" />
    <meta http-equiv="Content-Language" content="en-US">
    <meta name="keywords" content="keywords, go, here">
</pre></div>

Here is the preformatted text sample when the code sample goes beyond 520px horizontally. Notice the scrollbars to accomodate the overflowing code sample. This will happen automatically if the code lines go beyond 520px.

<script src="/js/globalnav.js" type="text/javascript" language="Javascript1.2" charset="utf-8"></script>
<script src="/js/resize.js" type="text/javascript" language="Javascript1.2" charset="utf-8"></script>
<link rel="Stylesheet" rev="Stylesheet" href="/css/import.css" type="text/css" media="Screen" charset="iso-8859-1">

Remember to use &lt; and &gt; for < and >

Images

Maximum image width is 520px. This may change, but for now let's try to stick with that. For larger images show a thumbnail and use target="mmwindow" to open the image in a new window (this is preferable to using a JS popup).

This is an Image Caption. Use <p class="caption">

Caption Caption Caption Caption Caption Caption Caption Caption

If you need to have text wrap around an image use <div class="image-left-wrap"><img /><p class="caption"></p></div>. Make sure the caption is contained within the div. If you need the wrap to break (as is the case here) apply class="clear-both" to whatever the following element is (in this case the class is applied to the <h3> below).

Lists

Use <ul> and <ol> for lists, not tables.

  • unordered
  • list
  1. A list with images

    image caption

  2. Another image

    image caption

  1. This is a

    1. nested
    2. ordered
  2. list
  • Using code inside a list
  • This is <code>
  • This is <pre>:

    <div class="preWrapper"><pre></pre></div>

See the list page from the production guide for more information.


About the author

The author bio should be at the bottom of the page, and is coded using the <address> tag. Be sure to link any URLs, too, and these open new browser windows using target="mmwindow".

Submit feedback on our tutorials, articles, and sample applications.